package game.gui.info;

import game.controller.GameController;
import game.controller.NationInstance;
import game.util.GameMsg;

import javax.swing.*;
import java.awt.*;

/**
 * NationInfoFrame.java  Date Created: 09 14, 2013
 *
 * Purpose: To display a nation's asset info.
 *
 * Description:  This class is the frame that will hold the panel.
 *
 * @author Chris
 */
public class NationInfoFrame extends JFrame {
    public NationInfoFrame(GameController controller, NationInstance nation) {
        this.setContentPane(new NationInfoPanel(controller, nation));

        setVisible(true);
        setResizable(false);
        setSize(new Dimension(400,650));
        setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
        setTitle(GameMsg.getString("nation.pos." + nation.getNation()) + " Summary");
    }
}
